package com.studyhub.question.model.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

// 2. 答复详情VO
@Data
public class AnswerVO implements Serializable {
    private static final long serialVersionUID = -1642873825454930586L;
    // 1. 答复ID
    private Long answerId;
    
    // 1.1. 答复ID字符串形式，避免前端JavaScript精度丢失
    private String answerIdStr;
    
    // 2. 内容
    private String content;
    
    // 3. 发布时间
    private Date publishTime;
    
    // 4. 点赞数
    private Integer likeCount;
    
    // 5. 答复者信息
    private UserVO replier;
    
    // 6. 被@用户信息
    private UserVO atUser;
    
    // 7. 子答复列表
    private List<AnswerVO> children;
    
    @Data
    public static class UserVO {
        private Integer userId;
        private String nickname;
        private String picture;
    }
}